import { defineStore } from "pinia";
import type { UserInfo } from "./types";
export const useUserStore = defineStore('user' , {
  state : () => ({
    userInfo: null
  }),
  actions : {
    setUserInfo (data: UserInfo) {
      this.userInfo = Object.assign({} , this.userInfo , data);
    }
  }
})